package common

import chisel3._
import chisel3.util._
import chisel3.experimental._


class Clk_Divider_IO extends Bundle{
    val clk     =   Input(Clock())
    val rst_p   =   Input(Bool())
    val clk_div =   Output(Clock())
}

class clk_divider( num_div:Int = 100, cnt_len:Int = 8 ) extends BlackBox(Map(
    "NUM_DIV"   ->  100,
    "CNT_LEN"   ->  8
)) with HasBlackBoxResource{
    val io = IO(new Clk_Divider_IO)
    addResource("/clk_divider.v")
}

